from django.conf.urls import url
from order.views import OrderView,AcceptRejectOrder,CommentOrder


urlpatterns = [
    # 预定、订单列表
    url(r'^api/v1.0/orders$', OrderView.as_view()),
    # 接单、拒单
    url(r'^api/v1.0/orders/(?P<order_id>[\d]+)/status$', AcceptRejectOrder.as_view()),
    # 评价订单
    url(r'^api/v1.0/orders/(?P<order_id>[\d]+)/comment$', CommentOrder.as_view()),

]